<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>UpgradeSql</title>
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="/AndroidTest/static/js/upgradeSql.js"></script>
	<script src="/AndroidTest/static/js/clipboard.min.js"></script>
	<script src="/AndroidTest/static/js/layer/layer.js"></script>
</head>
<body>
<div class="container" style="width:100%;height:auto">
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-primary" style="margin-top:15px;border:1px solid #b1bfc2">
				<div class="panel-heading" style="background-color:#b1bfc2;border:1px solid #b1bfc2">
					<h3 class="panel-title" style="font-size:23px"><span class="glyphicon glyphicon-glass"></span>自动生成升级脚本</h3>
				</div>
				<div style="margin-top:5px;margin-left:5px">
					<table style="width:75%;">
						<tr>
							<td><label style="font-size:16px">env:</label></td>
							<td><select class="form-control" style="width:95%" id="envsel">
									<option>--请选择环境--</option>
									<option>测试环境</option>
									<option>生产环境</option>
								</select>
							</td>
							<td><label style="font-size:16px">version:</label></td>
							<td><input type="text" class="form-control" placeholder="请输入版本号" style="width:80%" id="versioninput"></td>
							<td>
								<label style="font-size:16px">App类型:</label>&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="apptype" id="option1" value="0" checked>终端店&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="apptype" id="option2"  value="1">经销商	
							</td>
							<td>
								<label style="font-size:16px">App系统:</label>&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="ostype" id="option3" value="0" checked>android&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="ostype" id="option4"  value="1">ios	
							</td>
							<td>
								<label style="font-size:16px">是否强制升级:</label>&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="upgradetype" id="option5" value="0" checked>否&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="upgradetype" id="option6"  value="1">是
							</td>
							<td><button class="btn btn-info" style="float:right;margin:5px;background-color:#80b1bd;border:1px solid #80b1bd;outline:none" id="sqlbtn" onclick="createSql()"><span class="glyphicon glyphicon-plus"></span>生成</button></td>
							<td><button class="btn btn-info" style="float:right;margin:5px;background-color:#80b1bd;border:1px solid #80b1bd;outline:none" id="copybtn" onclick="copySql()" data-clipboard-text="测试1"><span class="glyphicon glyphicon-copy"></span>复制</button></td>
						</tr>
					</table>	
				</div>
				<div style="margin-top:10px;margin-bottom:10px;margin-left:5px;border:1px solid #b1bfc2;width:75%;height:100px">
					<span id="upgradeSqlInfo" style="white-space:pre-wrap;font-family:微软雅黑;font-size:17px"></span>
				</div>
				
				
			</div>
		</div>
	</div>
</div>
</body>